package com.github.shiqiyue.app.modules.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.shiqiyue.app.modules.sys.entity.RolePermission;

import java.util.List;

/**
 * <p>
 * 角色-权限 Mapper 接口
 * </p>
 *
 * @author wenyao.wu
 * @since 2018-10-16
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    /***
     * 通过[roleId]获取
     * @param roleId
     * @return
     */
    List<RolePermission> findByRoleId(Long roleId);

}
